package com.grad.webstudy.model;

import java.io.Serializable;

public class CourseChapter implements Serializable {
    private Integer id;

    private Integer courseId;

    private String chapterName;

    private Integer sequence;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName == null ? null : chapterName.trim();
    }


    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    @Override
    public String toString() {
        return "CourseChapter{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", chapterName='" + chapterName + '\'' +
                ", sequence=" + sequence +
                '}';
    }
}